import { styled } from "styled-components";

const DEFAULT_BOX_WIDTH = "500px"

export const ScreenWarpper = styled.div`

width: 100%;
height: 100%;
user-select: none;
#box{
  width: 100% !important;
  height: 100% !important;
}

#cesiumContainer {
  width: 100%;
  height: 100vh;
}

.left_glow {
  position: absolute;
  left: 0px;
  top: 60px;
  z-index: 9;
  width:calc(${DEFAULT_BOX_WIDTH} + 15px);
  height: calc(100% - 60px);
  overflow: hidden;
  background: rgba(18, 19, 22, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(5px);
  filter: blur(5px);
  /* border-radius: 20px; */
}
.left_glow2 {
  position: absolute;
  left: 0px;
  top: 60px;
  z-index: 9;
  width: 30px;
  height: calc(100% - 60px);
  background: url(${require("@/assets/img/left-l.png").default})  no-repeat;
  background-position: top right;
  background-size: contain;
}
.left {
  position: absolute;
  left: 30px;
  top: 60px;
  z-index: 9;
  width: ${DEFAULT_BOX_WIDTH};
  height: calc(100% - 60px);
  overflow: hidden;
  background-image: url(${require("@/assets/img/right.png").default});
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
  padding-right: 15px;
  >:nth-child(1) {
      height: 330px;
      margin-bottom: 16px;
		  animation:slideLeft .4s; // 新增
      /* background: rgba(14,17,24,0.6); */
	}
    >:nth-child(2) {
      height: 480px;
      margin-bottom: 16px;
      /* background: rgba(14,17,24,0.6); */
      animation:slideLeft .8s; // 新增
    }
    >:nth-child(3) {
      height: 280px;
      /* background: rgba(14,17,24,0.6); */
      animation:slideLeft 1.2s; // 新增
    }
  @keyframes slideLeft {
        0% {
            opacity: 0;
            transform: translateX(-100%);
        }
        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

.tooltip-container{
  position:absolute;
  width: 300px;
  background: rgb(0,0,0,0.3);
  height: 120px;
  z-index: 999;
  border:solid 1px #76b0e2;
  color:#fff;
  line-height: 30px;
  overflow: hidden;
  .tooltip{
    position: relative;
  }
  .triangle{
      display: inline-block;
      position: absolute;
      z-index: 999;
      left: 50%;
      transform:translateX(-50%);
      bottom: -32px;
      width: 0;
      height: 0;
      border: 16px solid transparent;
      border-top-color: #76b0e2;
  }
}
.htitle{
  ${props => props.theme.mixin.ellipsisLine1}
}
.htitle,.title,.ltitle{
  padding-left: 20px;
}
.ltitle span{
  color:#76b0e2;
  cursor: pointer;
  text-decoration: none;
}


.tower{
  position: absolute;
  z-index: 9;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  opacity: 0.9;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(5px);
  filter: blur(5px);
  box-shadow:0px 0px 100px 0px #000000;
}
.tower_bottom{
  position: absolute;
  z-index: 9;
  bottom: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  opacity: 0.9;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(5px);
  filter: blur(5px);
  box-shadow:0px 0px 100px 0px  #000000;
}
.tower_left{
  position: absolute;
  z-index: 9;
  top: 0;
  left: 0;
  width: 60px;
  height: 100%;
  background: rgba(14, 17, 24, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(5px);
  filter: blur(5px);
    
}
.tower_right{
  position: absolute;
  z-index: 9;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
  background: rgba(14, 17, 24, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(5px);
  filter: blur(5px);
    
}

.right_glow {
  position: absolute;
  right: 0px;
  top: 60px;
  z-index: 9;
  width:calc(${DEFAULT_BOX_WIDTH} + 15px);
  height: calc(100% - 60px);
  overflow: hidden;
  background: rgba(18, 19, 22, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(5px);
  filter: blur(5px);
  /* border-radius: 20px; */
}
.right_glow2 {
  position: absolute;
  right: 0px;
  top: 60px;
  z-index: 9;
  width: 30px;
  height: calc(100% - 60px);
  background: url(${require('@/assets/img/right-r.png').default}) no-repeat;
  background-position: top right;
  background-size: contain;
}
.right {
  position: absolute;
  right: 30px;
  top: 60px;
  z-index: 9;
  width: ${DEFAULT_BOX_WIDTH};
  height: calc(100% - 60px);
  overflow: hidden;
  background: url(${require('@/assets/img/right.png').default}) no-repeat;
  background-position: top left;
  background-size: contain;
  padding:0 15px;
  >:nth-child(1) {
      height: 316px;
    /* background: rgba(14,17,24,0.6); */
    margin-bottom: 16px;
		animation:slideRight .4s; // 新增
	}
    >:nth-child(2) {
      height: 400px;
      /* background: rgba(14,17,24,0.6); */
      margin-bottom: 16px;
      animation:slideRight .8s; // 新增
    }
    >:nth-child(3) {
      height: 246px;
      /* background: rgba(14,17,24,0.6); */
      animation:slideRight 1.2s; // 新增
    }
    @keyframes slideRight {
        0% {
            transform: translateX(100%);
            opacity: 0;
        }
        100% {
            transform: translateX(0);
            opacity: 1;
        }
    }
}

.center {
  width: 800px;
  position: absolute;
  left: 50%;
  top: 140px;
  transform: translateX(-50%);
  overflow: hidden;
  z-index: 9;
  /* display: flex;
  flex-direction: column; */
  .screen-overview {
    width: 100%;
    height: 66px;

  .screen-overview_box {
    color: #fff;
    /* height: 100%; */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .screen-overview_item {
    background: url(${require('@/assets/img/center-top.png').default}) no-repeat center;
    background-size: 100% 100%;
    width: 118px;
    height: 100%;
    padding: 9px 0;
    ${props => props.theme.mixin.contentCenter}
    flex-direction: column;
    .value {
      font-size: 20px;
      ${props => props.theme.mixin.ellipsisLine1}
    }

    .label {
      font-size: 12px;
      color: #ffffff;
      ${props => props.theme.mixin.ellipsisLine1}
    }
  }
}
}

`